﻿/*
 * Authors:    Kęstutis Džiautas
 *             Edmundas Matusevičius
 * University: VU, MIF, SE, 4 course
 * Date:       2010-12-18
 * Version:    1.0
 */

namespace SemAnalyzer {
    class TreeNode {
        public enum TreeNodeType { Operand, Operator, None };

        public TreeNode() {
            content = null;
            type = TreeNodeType.None;

            father = null;
            child = null;
            brother = null;
        }

        /// <summary>
        /// The content of node.
        /// </summary>
        public string content { get; set; }
        /// <summary>
        /// The type of node.
        /// </summary>
        public TreeNodeType type { get; set; }

        /// <summary>
        /// Father of the node.
        /// </summary>
        public TreeNode father { get; set; }
        /// <summary>
        /// First child from the left.
        /// </summary>
        public TreeNode child { get; set; }
        /// <summary>
        /// First brother to the rigth.
        /// </summary>
        public TreeNode brother { get; set; }
    }
}
